<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
    var str = 'www.jb51.IYCASE.CN';
    console.log('原字符串为:' + str);
    console.log(str.toUpperCase());//获取字符串大写形式
    console.log(str.toLowerCase());//小写
    </script>
</body>
</html>